package cn.myit.service.impl;

import cn.myit.domain.Teacher;
import cn.myit.mapper.TeacherMapper;
import cn.myit.service.ITeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TeacherServiceImpl implements ITeacherService {
    @Autowired
    TeacherMapper teacherMapper;
    @Override
    public List<Teacher> qureyall() {
        List<Teacher> getall = teacherMapper.getall();
        return getall;
    }

    @Override
    public void add(Teacher teacher) {
        teacherMapper.add(teacher);
    }

    @Override
    public void update(Teacher teacher) {
        teacherMapper.update(teacher);
    }

    @Override
    public void remove(Long id) {
        teacherMapper.remove(id);
    }

    @Override
    public List<Teacher> list() {
        return null;
    }
}
